<div class="row-fluid" >
    <div class="span12">
        <div class="box box-color box-bordered">
            <div class="nomargin box-title">
                <h3>Listagem dos Animes / Mini Series</h3>
                <div class="actions">
                    <?php echo $this->Html->link('<i class="icon-plus-sign"></i> Novo',array('controller'=>'animes','action'=>'add'),array('class'=>'btn btn-primary','escape'=>false,'rel'=>"tooltip",'data-placement'=>"left",'data-original-title'=>"Adicionar no anime.")); ?>
                </div>
            </div>
            <div class="box-content nopadding">
                <table class="table table-hover table-nomargin dataTable table-bordered dataTable-scroll-y dataTable-scroll-x">
                    <thead>
                    <tr>
                        <th><?php echo $this->Paginator->sort('name','Anime'); ?></th>
                        <th class="col_action"><?php echo __('Opções'); ?></th>
                    </tr>
                    <tr class="thefilter" role="row">
                        <th rowspan="1" colspan="2">
                            <span class="filter_column filter_text">
                                <?php
                                    echo $this->Search->create('',array('class'=>'nomargin'));
                                ?>
                                <div class="input-append no-pull span12 nomargin">
                                <?php
                                    echo $this->Search->input('filter1',array('class'=>'span9 nomargin typeahead','placeholder'=>'Nome do Anime','data-provide'=>"typeahead",'data-items'=>"4",'autocomplete'=>'off'));
                                    echo $this->Search->input('t_status',array('class'=>'span2 nomargin','empty'=>'-- Status --','placeholder'=>'Status'));
                                    echo $this->Search->button('Go!',array('class'=>'btn nomargin',''));
                                ?>
                                </div>
                                <?php
                                    echo $this->Search->end();
                                ?>
                            </span>
                        </th>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!empty($animes)):
                    foreach($animes as $anime): ?>
                        <tr>
                            <td>
                                <?php echo $this->Html->image('anime/photo/'.$anime['Anime']['id'].'/vga_'.h($anime['Anime']['photo']),array('style'=>'width:80px;','class'=>'img pull-left'))?>
                                <strong class="span9"><?php echo h($anime['Anime']['name']);?></strong>
                                <span class="span9"><?php echo $this->Html->link($this->Function->Status($anime['Anime']['status']),'javascript:;',array('escape'=>false,'class'=>"status",'id'=>$anime['Anime']['id'],'data-sourse'=>$this->webroot.'Animes/','data-value'=>$anime['Anime']['status']))?></span>
                            </td>
                            <td style="width: 15px;">
                                <div class="btn-group-vertical">
                                    <div class="btn-group">
                                        <?php
                                        echo $this->Html->link('<i class="icon icon-edit"></i> Editar',array('controller'=>'animes','action'=>'edit',$anime['Anime']['id']),array('class'=>'btn btn-inverse','escape'=>false));
                                        echo $this->Html->link('<i class="icon icon-eye-open"></i> Ver',array('controller'=>'animes','action'=>'view',$anime['Anime']['id']),array('class'=>'btn btn-inverse linkModal','escape'=>false));
                                        ?>
                                    </div>
                                    <?php echo $this->Form->postLink(__('<i class="icon icon-trash"></i> Delete'), array('action' => 'delete', $anime['Anime']['id']), array('escape'=>false,'class'=>'btn btn-danger'), __('Deseja remover:\n%s?', $anime['Anime']['name'])); ?>
                                </div>
                            </td>
                        </tr>
                    <?php
                    endforeach;
                    else:
                        ?>
                        <tr>
                            <td colspan="2"><span class="alert alert-info span12 nomargin"><strong>INFORMAÇÃO:&nbsp;</strong>Não foi encontrado resultado em nosso banco</span></td>
                        </tr>
                    <?php endif;?>
                    </tbody>
                </table>
                <?php echo $this->Element('_paginate')?>
            </div>
        </div>
    </div>
</div>
<?php echo $this->Element('_modalView');?>